package com.woniuxy.dudugua.controller;

import com.woniuxy.dudugua.service.MajorService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.woniuxy.dudugua.util.Result;

import javax.annotation.Resource;

/**
 * @author JadeFang
 * @Deprecated  专业馆
 */
@RestController
public class MajorController {
    @Resource
    private MajorService majorService;
    @RequestMapping("major")
    public  Result  selectByProductMajor() throws Exception{
            return  new Result("200","success",null,majorService.selectByProductMajor());
    }

    @RequestMapping("majorIdSon")
    public  Result  selectByProductMajorIdSon() throws Exception{
        return  new Result("200","success",null,majorService.selectByProductMajorIdSon());
    }

}
